<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:76:"D:\phpstudy_pro\WWW\thinkphp\public/../application/home\view\user\index.html";i:1649937337;s:62:"D:\phpstudy_pro\WWW\thinkphp\application\home\view\layout.html";i:1649407092;s:67:"D:\phpstudy_pro\WWW\thinkphp\application\home\view\common\meta.html";i:1649407092;s:69:"D:\phpstudy_pro\WWW\thinkphp\application\home\view\common\script.html";i:1649407092;s:69:"D:\phpstudy_pro\WWW\thinkphp\application\home\view\common\header.html";i:1649407092;s:69:"D:\phpstudy_pro\WWW\thinkphp\application\home\view\common\footer.html";i:1649407092;}*/ ?>
 
 
<!DOCTYPE html>
<html>
<head>
<!-- 头部信息 -->
<meta charset="utf-8">
  <title><?php echo $System['SiteName']; ?></title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="<?php echo $System['keywords']; ?>">
  <meta name="description" content="<?php echo $System['description']; ?>">
  <link rel="shortcut icon" href="<?php echo $System['SiteLogo']; ?>" />
  <link rel="stylesheet" href="/assets/home/layui/css/layui.css">
  <link rel="stylesheet" href="/assets/home/css/global.css">
  <link rel="stylesheet" href="/assets/home/css/common.css" />
<!-- js信息 -->
<script src="/assets/home/layui/layui.js"></script>
<script>
    //预加载
    window.onload = function(){
      layui.cache.page = '';
      layui.cache.user = {
        username: '游客'
        ,uid: -1
        ,avatar: '/assets/home/images/avatar/00.jpg'
        ,experience: 83
        ,sex: '男'
      };
      layui.config({
        version: "3.0.0"
        ,base: '/assets/home/mods/' //这里实际使用时，建议改成绝对路径
      }).extend({
        fly: 'index'
      }).use('fly');
    }
</script>

</head>
<body>

<!-- 头部文件 -->
<div class="fly-header layui-bg-black">
  <div class="layui-container">
    <a class="fly-logo" href="/">
      <img src="/assets/home/images/logo.png" alt="layui">
    </a>

    <ul class="layui-nav fly-nav-user">



      <!-- 登入后的状态 -->
      <?php if(\think\Cookie::get('LoginUser')): ?>
      <li class="layui-nav-item">
        <a class="fly-nav-avatar" href="javascript:;">
          <cite class="layui-hide-xs"><?php echo \think\Cookie::get('LoginUser')['nickname']; ?></cite>
          <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：layui 作者"></i>
          <i class="layui-badge fly-badge-vip layui-hide-xs">VIP3</i>
          <img src="<?php echo \think\Cookie::get('LoginUser')['avatar']; ?>">
        </a>
        <dl class="layui-nav-child">
          <dd><a href="<?php echo url('home/user/index'); ?>"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a></dd>
          <dd><a href="<?php echo url('home/user/user',['setup'=>1]); ?>"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
          <dd><a href="<?php echo url('home/post/index',['setup'=>2]); ?>"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的帖子</a></dd>
          
          <hr style="margin: 5px 0;">
          <dd><a href="<?php echo url('home/index/logout'); ?>" style="text-align: center;">退出</a></dd>
        </dl>
      </li>

      <?php else: ?>
      <!-- 未登入的状态 -->
      <li class="layui-nav-item">
        <a class="iconfont icon-touxiang layui-hide-xs" href="<?php echo url('home/user/index'); ?>"></a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('home/index/login'); ?>">登入</a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('home/index/register'); ?>">注册</a>
      </li>
      <?php endif; ?>
    </ul>
  </div>
</div>

<!-- 子模板变量 -->
<style>
  .fly-home {
    background: url("<?php echo \think\Cookie::get('LoginUser')['cover']; ?>") no-repeat;
    background-size: cover;
  }
</style>
<div class="fly-home fly-panel">
  <img src="<?php echo \think\Cookie::get('LoginUser')['avatar']; ?>" alt="贤心">
  <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
  <h1>
    <?php echo \think\Cookie::get('LoginUser')['nickname']; ?>
    <i class="iconfont icon-<?php echo $LoginUser['sex']==1?'nan':($LoginUser['sex'] == 2?'nv':''); ?>"></i>
    <!-- <i class="iconfont icon-nv"></i>  -->
    <?php if($LoginUser['vip']>0): ?>
    <i class="layui-badge fly-badge-vip">VIP<?php echo $LoginUser['vip']; ?></i>
    <?php endif; ?>
    <!--
      <span style="color:#c00;">（管理员）</span>
      <span style="color:#5FB878;">（社区之光）</span>
      <span>（该号已被封）</span>
      -->
  </h1>

  <p style="padding: 10px 0; color: #5FB878;">认证信息：<?php echo $LoginUser['AuthText']; ?></p>
  <p class="fly-home-info">
    <i class="iconfont icon-kiss" title="积分"></i><span style="color: #FF7200;"><?php echo $LoginUser['point']; ?>飞吻</span>
    <i class="iconfont icon-shijian"></i><span><?php echo $LoginUser['createtime']; ?> 加入</span>
    <i class="iconfont icon-chengshi"></i><span><?php echo $LoginUser['Region']; ?></span>
  </p>
  <p class="fly-home-sign"><?php echo $LoginUser['content']; ?></p>

  <!-- <div class="fly-sns" data-user="">
      <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
      <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
    </div> -->

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">贤心 最近的提问</h3>
        <ul class="jie-row">
          <li>
            <span class="fly-jing">精</span>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>刚刚</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <li>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>1天前</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <li>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>2017-10-30</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <li>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>1天前</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <li>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>1天前</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <li>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>1天前</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <li>
            <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i>1天前</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
        </ul>
      </div>
    </div>

    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">贤心 最近的回答</h3>
        <ul class="home-jieda">
          <li>
            <p>
              <span>1分钟前</span>
              在<a href="" target="_blank">tips能同时渲染多个吗?</a>中回答：
            </p>
            <div class="home-dacontent">
              尝试给layer.photos加上这个属性试试：
              <pre>
  full: true         
  </pre>
              文档没有提及
            </div>
          </li>
          <li>
            <p>
              <span>5分钟前</span>
              在<a href="" target="_blank">在Fly社区用的是什么系统啊?</a>中回答：
            </p>
            <div class="home-dacontent">
              Fly社区采用的是NodeJS。分享出来的只是前端模版
            </div>
          </li>

          <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
        </ul>
      </div>
    </div>
  </div>
</div>

<!-- 底部（footer）文件 -->
 <div class="fly-footer">
    <p>2017 &copy; <a href="http://www.layui.com/" target="_blank">Fly技术社区</a></p>
  </div>

</body>
</html>